home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / remote / bat2fd10.zip / STOP2.BAT < prev   
DOS Batch File  |  1990-11-03  |  759b  |  32 lines

  1. Rem
  2. Rem =================================================
  3. Rem = Batchfile to take node 2 unconditionally down =
  4. Rem =================================================
  5. Rem
  6. Rem This batchfile loops untill Node 2 is down, 
  7. Rem  no matter how long it takes.
  8. Rem
  9. Rem First check whether Node 2 is already Down
  10.  
  11. If Exist C:\Ra\Line2\Down Goto Ready
  12.  
  13. Rem
  14. Rem If it isn't then flag that it should stop it's activity
  15. Rem
  16.  
  17. Rem > C:\Ra\Line2\GoDown
  18.  
  19. :Loop
  20. If Not Exist C:\Fd\Fd2\FdExit.160 Rem > C:\Fd\Fd2\FdExit.160
  21. Echo Waiting for Node 2 to stop
  22. DvComand Wait 80
  23. If Not Exist C:\Ra\Line2\Down Goto Loop
  24.  
  25. Rem
  26. Rem Now Node 2 is down, delete the signal that let's it stop
  27. Rem
  28.  
  29. If Exist C:\Fd\Fd2\FdExit.160 Del C:\Fd\Fd2\FdExit.160
  30. :Ready
  31.  
  32.